<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汇智电商首页</title>
    <style>
        /* 清除默认样式 */
        *{padding: 0; margin: 0;}

        body{
            display: flex;
            flex-direction: column;
            height: 100vh;
            width: 100%;
        }

        .g-search{
            height: 50px;
            background-color: pink;
        }
        .g-wrapper{
            height: calc(100vh-50-70);
            background-color: gold;
            overflow: scroll;
        }

        .g-wrapper .g-swiper{
            height: 200px;
            background-color: cadetblue;
        }

        .g-wrapper .g-category{
            height: 200px;
            background-color: brown;
        }

        .g-wrapper .g-goods{
            height: 500px;
            background-color: chocolate;
        }

        .g-footer{
            height: 70px;
            background-color: blueviolet;
        }


    </style>
</head>

<body>
    <!-- 搜索区域 -->
    <div class="g-search">搜索</div>

    <!-- 中间滚动区域 -->
    <div class="g-wrapper">
        <!-- 轮播子区域 -->
        <div class="g-swiper">轮播子区域</div>
        <!-- 分类子区域 -->
        <div class="g-category">分类子区域</div>
        <!-- 商品列表区域 -->
        <div class="g-goods">商品列表区域</div>
    </div>

    <!-- 底部区域 -->
    <div class="g-footer">底部</div>
</body>

</html>